package com.jinmdz.fmis.api.api.model.settlement;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 更改收据号数据
 *
 * @author LiCongLu
 * @date 2020-02-20 18:27
 */
@ApiModel(value = "更改收据号数据", description = "更改收据号数据")
public class ChangeReceiptData extends BaseBean {

    /**
     * 主键
     */
    @AnValidate(name = "主键", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "主键", name = "id", position = 1)
    private Integer id;

    /**
     * 业务编码
     */
    @AnValidate(name = "业务编码", required = true)
    @ApiModelProperty(value = "业务编码", name = "businessCode", position = 2)
    private String businessCode;

    /**
     * 收据号
     */
    @AnValidate(name = "收据号")
    @ApiModelProperty(value = "收据号", name = "receiptNo", position = 3)
    private String receiptNo;

    /**
     * 备注
     */
    @AnValidate(name = "备注")
    @ApiModelProperty(value = "备注", name = "remark", position = 4)
    private String remark;

    /**
     * 数据版本号
     */
    @AnValidate(name = "数据版本号", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "数据版本号", name = "version", position = 5)
    private Long version;

    public Integer getId() {
        return id;
    }

    public ChangeReceiptData setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public ChangeReceiptData setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
        return this;
    }

    public String getReceiptNo() {
        return receiptNo;
    }

    public ChangeReceiptData setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public ChangeReceiptData setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public Long getVersion() {
        return version;
    }

    public ChangeReceiptData setVersion(Long version) {
        this.version = version;
        return this;
    }
}
